package com.ruoyi.app.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.message.domain.MessageShare;
import com.ruoyi.message.service.IMessageShareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 分享记录Controller
 * 
 * @author hct
 * @date 2022-04-14
 */
@RestController
@RequestMapping("/app/share")
public class AppMessageShareController extends BaseController
{
    @Autowired
    private IMessageShareService messageShareService;





    /**
     * 新增分享记录
     */
   @PostMapping
    public AjaxResult add(@RequestBody MessageShare messageShare)
    {
        return toAjax(messageShareService.insertMessageShare(messageShare));
    }



}
